# Contributor: Siva Mahadevan <me@svmhdvn.name>
# Maintainer: Siva Mahadevan <me@svmhdvn.name>
pkgname=zkgroup
pkgver=0.9.0
pkgrel=0
pkgdesc="Library for the Signal Private Group System"
url="https://github.com/signalapp/zkgroup"
arch="all !s390x !ppc64le !riscv64" # limited by cargo
license="GPL-3.0-only"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/signalapp/zkgroup/archive/v$pkgver.tar.gz"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm755 "target/release/libzkgroup.so" "$pkgdir/usr/lib/libzkgroup.so"
}

sha512sums="
1323a736fe72ef55d80cbcaaca77a34c6693f37b083cb9af88c9d805cf227ab42f095e690166e01b290923dfdc87207c4d0fdd30de8718d1859b83558252d4d1  zkgroup-0.9.0.tar.gz
"
